﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

namespace mobile.bg
{
    public class Producer
    {
        public string Name { get; set; }

        public List<Model> Models { get; set; }

        public Producer()
        {
            this.Models = new List<Model>();
        }

        public static List<Producer> GetProducers()
        {
            List<Producer> producers = new List<Producer>();

            Producer opel = new Producer
            {
                Name = "Opel",
                Models = new List<Model>()
                {
                    new Model{ Name="Corsa" },
                    new Model{ Name="Astra" },
                    new Model{ Name="Vectra" },
                    new Model{ Name="Insignia" },
                }
            };

            Producer audi = new Producer
            {
                Name = "Audi",
                Models = new List<Model>()
                {
                    new Model{ Name="A3" },
                    new Model{ Name="A4" },
                    new Model{ Name="A6" },
                    new Model{ Name="A8" },
                    new Model{ Name="S5" },
                    new Model{ Name="S8" },
                }
            };

            producers.Add(opel);
            producers.Add(audi);

            return producers;
        }
    }
}